xend: pass-through: Only call setupOneDevice() once per device
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:33:23 +0000 (11:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:33:23 +0000 (11:33 +0100)
commit678e6d8b30787c7e848b38197162992ec38bc8ce
treed806fbc6cc3f70e5edf1207d90ac6a97a16d7f35
parent70ba0db350da7408a57c63a57461ced747b704cc
xend: pass-through: Only call setupOneDevice() once per device

As observed by Dexuan Cui, when PCI devices are passed through at
domain-creation-time setupOneDevice() will be called twice.

Once via setupDevice() and once via econfigureDevice() which
is called in pci_device_configure().

This patch removes the first of these.

Cc: Dexuan Cui <dexuan.cui@intel.com>
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/xend/server/pciif.py